Here's how it works:
Structure: Did + subject + main verb (in base form) + rest of the sentence?
Examples:
* Did you go to the party last night?
* Did she eat breakfast this morning?
* Did they finish their homework?
Important Note: The main verb in the question will always be in the base form (present tense) even though the question is about the past.