“Was hast du gestern gemacht?” means “What did you do yesterday?” Gemacht comes at the end of this past question.