There's not much nightlife in Mafra, but there's a nice place where you can have a nice cup of coffee. The name is "Café da Vila" and you can find it right next to the palace, near a garden with three soldiers. If you are lucky, you can be served by the most prettiest girl of this town :)