The town of Hatta is an exclave of the emirate of Dubai and borders nearby Oman . Hatta , a minor exclave of the emirate , is surrounded on three sides by Oman and by the emirates of Ajman ( in the west ) and Ras Al Khaimah ( in the north ) . The Persian Gulf borders the western coast of the emirate .