Getting around Ajlun
More
Ajlun is not a very big town, the bus will drop you off in the center and in order to get to the castle, which is clearly visible from the town perched on a hill, you can either walk the 3 km or take a taxi there. If you plan to travel to Jerash afterward, consider hiring the taxi driver for the full day, or at least make arrangements for the taxi to wait for you or pick you up at a designated time to transport you back to the Aljun bus station. Make sure you set a price in advance.
Source: Wikivoyage, Ajlun, written by volunteers (CC BY-SA 4.0), not a government source. Prices and timings may be old; confirm before you travel.