This name is derived from the Javanese words "asem" and "arang, " meaning rare tamarind. According to a legend, a prince found this rare tamarind tree in the area and named the city so.