Voice is the form of a verb that shows whether the subject of a sentence performs an action or undergoes it. In the active voice the subject is the doer: The police caught the thief. In the passive voice the subject is the thing or person affected, and the doer, called the agent, may appear in a by-phrase: The thief was caught by the police. Nesfield traces the terms to Latin, where activus means doing and passivus means suffering or undergoing. The two sentences report the same event; the change of voice changes the point of view.
The first rule is that only transitive verbs normally have a passive, because the object of the active verb becomes the subject of the passive. Intransitive verbs such as arrive, happen and sleep cannot be passivised. Prepositional verbs such as laugh at and rely on behave like transitive verbs, and the preposition stays with the verb: Everyone laughed at him becomes He was laughed at by everyone.
The second rule concerns the verb phrase. The passive verb is formed with the appropriate form of be and the past participle of the main verb, and be carries the same tense as the active verb. Thus writes becomes is written, is writing becomes is being written, has written becomes has been written, wrote becomes was written, had written becomes had been written, and will write becomes will be written. Modals take be followed by the participle: can be written, must be written. The perfect continuous has no ordinary passive, and such sentences are left in the active.
The third rule concerns the noun phrases. The active object becomes the passive subject, and the active subject moves into the by-phrase. Pronouns change case accordingly, so She praised them becomes They were praised by her. The verb must agree with the new subject. If the agent is unknown or unimportant the by-phrase is omitted: Someone has broken the window becomes The window has been broken.
Several sentence types need special handling. With two objects, either may become the subject: They gave him a medal becomes He was given a medal or A medal was given to him. An object complement stays with the new subject: They made him president becomes He was made president. Questions keep their question form, and who becomes by whom: Who wrote this letter? becomes By whom was this letter written? Commands use let or a verb of request: Close the gate becomes Let the gate be closed, and Please wait here becomes You are requested to wait here. Reporting verbs give It is said that he is rich or He is said to be rich.
Changing passive to active reverses these steps, supplying a subject such as someone or people where the agent is missing.
Finally, voice is a matter of emphasis. The passive suits contexts where the action or its object matters more than the doer, as in scientific and official writing, while the active is usually clearer and more direct. A good answer therefore converts accurately and can also say why one voice fits a given sentence better than the other.