Guaymas (Spanish pronunciation: [ˈɡwajmas]) is a city in Guaymas Municipality, in the southwest part of the state of Sonora, in northwestern Mexico. The city is 117 km south of the state capital of Hermosillo, and 242 miles from the U.S. border. The municipality is located on the Gulf of California and the western edge of the Sonoran Desert and has a hot, dry climate and 117 km of beaches. The municipality’s formal name is Guaymas de Zaragoza and the city’s formal name is the Heróica Ciudad de Guaymas.The city proper is mostly an industrial port and is the principal port for the state of Sonora. The city has a well-attended annual carnival, which has been held since 1888. Nearby, San Carlos and its beaches are major tourist attractions.