Bach went to a village called Muhlhausen. He got married and stayed there till a message came for him that the duke wanted him to come back to the palace.
Bach played the harpsichord for the duke. The duke liked it so much that he wanted Bach to stay.