Dubai is the second largest emirate in the U.A.E. after Abu Dhabi ; which is the capital . The emirate is located on the Persian Gulf , southwest of Sharjah and northeast of Abu Dhabi . The emirate of Dubai shares borders with Abu Dhabi in the south , Sharjah in the northeast , and the Sultanate of Oman in the southeast .