Ali moved his capital from Medina to Kufa .
He soon met with resistance from several factions , and moved his capital from Medina to Kufa .