Change into passive voice?

why did you tell a lie

Why was a lie told?

which is correct

passive voice
why was a lie told by you?
By why was a lie told by you.

To change the sentence "Why did you tell a lie?" from active voice to passive voice, you need to rearrange the sentence structure and modify the verb tense.

Passive voice emphasizes the action being done to the subject, rather than the subject performing the action. Here's how you can change the sentence:

Active voice: Why did you tell a lie?
Passive voice: Why was a lie told by you?

In this transformation, the subject "you" becomes the object in the passive voice sentence, and the verb "tell" changes to the past participle form "told." Additionally, the helping verb "did" changes to "was." However, please note that using the passive voice may not always be necessary or desirable.