 Therefore, Raghunathrao was appointed as the regent to the young Peshwa.He soon fell out of favor with Madhavrao and even tried to conspire against him by joining the Nizam of Hyderabad against the Peshwa.The alliance was defeated at Ghodegaon, and Raghunathrao was placed under house arrest.