A battle shortly took place near Merv, known as the Battle of Dandanaqan, where the army of Mas'ud was defeated by a much smaller army under Tughril, his brother Chaghri Beg, and the Kakuyid prince Faramurz.