This depends on the nationality stated in your passport and on the length of your stop in Dubai. Travellers of most nationalities require visas to enter Dubai, and regulations frequently change, so if you wish to leave the airport while in transit through Dubai, please check your visa requirements with your local UAE embassy before you start your journey. Travellers of certain nationalities may obtain visas at the airport on arrival. Please check the UAE Visas page.
For those who wish to stay at the Dubai International Airport Hotel while in transit through Dubai, reservations can be made directly via email (firstname.lastname@example.org), or you may wish to inquire into Emirates’ own Dubai Stopovers packages for those who wish to make the most of their time in transit. Learn more about Dubai Stopovers.