The period of Muhammad in Medina started with the Migration to Medina in 622 and ended with the Conquest of Mecca in 630.