Barely 13 months after the Shiv Sena passed a resolution in its national executive to go it alone in all future polls, it took a U-turn by announcing an alliance with the Bharatiya Janata Party on Monday.

As per the agreement, the BJP will contest 25 out of the 48 Lok Sabha seats, while the Sena will contest 23.

At a joint press conference addressed by BJP national president Amit Shah, Sena chief Uddhav Thackeray and Maharashtra Chief Minister Devendra Fadnavis, the parties announced their decision to contest both the Lok Sabha and Assembly elections together.

“Both parties have been together for over 25 years, and even though there have been some misunderstandings in recent times, the original ideology of both parties is the same — Hindutva. At a time when certain parties and individuals are posing a threat to national interest, it is important that parties with national interests should come together. This is the public sentiment and, therefore, we have decided to come together for the Lok Sabha and Assembly elections,” Mr. Fadnavis said.

The Chief Minister said one of the Shiv Sena’s major demands was construction of a Ram Mandir in Ayodhya. “The government has shown its commitment to it [the demand] by giving 63 acres of undisputed land. It is a matter of national pride,” he said.

Mr. Shah said the alliance would win 45 seats in the State.

Though Sena sources said they initially were firm that seat-sharing for the Maharashtra Assembly be declared together with the Lok Sabha seats, Mr. Fadnavis informed that for the Assembly, the other allies will be given seats based on discussions with them and the remaining will be shared on 50:50 basis between the Sena and BJP.

Mr. Fadnavis, responding to a question on the demand for appointing a Sena leader as the next Chief Minister of Maharashtra, said that following the election which would certainly be won by the Sena-BJP alliance, the responsibilities would also be shared equally.

In the 2014 general election the BJP had contested 26 of the total 48 seats, and Sena 22. The Sena will get Palghar Lok Sabha from the BJP as an additional one. As both parties failed to reach consensus in the Assembly poll held in the same year, they contested against each other. The BJP had contested in 260 seats and won 122, while the Sena had contested in 282 and won 63.

“We both have a history of 30 years but the last five years have been rough. However we cannot allow misunderstanding between us to help those parties against whom we fought for 50 years to gain power back,” said Mr. Uddhav. The Sena chief said that with identical ideologies both parties have decided to bury their differences.

Mr. Shah said the Sena and Akali Dal were two of the oldest allies of the BJP who have stood by it in every situation. “I thank Uddhav ji for showing the big heart and coming forward to join hands. We have left the past behind,” he said.

Throughout the day, speculation about the announcement of an alliance between the two parties had peaked. Mr. Shah shortened his Jaipur trip and reached the city by around 5 p.m. Mr. Fadnavis arrived in Mumbai from Gadchiroli by 5.50 p.m. Mr. Thackeray, his son Aaditya, Mr. Shah and Mr. Fadnavis left from Matoshri for Worli where the press conference was held.

In the past few weeks, following the visit of JD(U) leader Prashant Kishor, the Sena had started giving indications that it would agree to the alliance.

Among the promises that Mr. Fadnavis has made to the Sena include shifting of the Nanar Oil Refinery out of Ratnagiri due to opposition from locals, waiving off property tax for houses up to 500 square feet within Brihanmumbai Municipal Corporation (BMC) limits and including more number of farmers in the State’s loan waiver scheme.