Dubai is a country.
Dubai is a city in the UAE, but it is not the capital (that’s Abu Dhabi). There are 7 emirates in the UAE that have different sheikhs. However, Dubai is a very populated emirate.