In 622 Muhammad leaves Mecca, where his preaching of one God has brought him into conflict with the city's leading clans, and moves north to Yathrib, where many of his followers have gone before him. The town, which becomes known as Medina, 'the city', accepts him as arbiter between its tribes, and there he leads the first Muslim community. In 630 he returns to Mecca with an army and takes the city with little fighting. The caliph Umar later fixes the Hijra as the first year of the Islamic calendar, which counts lunar years from it.