UniCredit has reached an agreement with the German government on key aspects of its proposed takeover of Commerzbank, following a two-year effort by the Italian bank to acquire the German lender.

Under the agreement, the combined entity would keep its headquarters in Frankfurt and remain listed on the stock market. The German government will not insist on appointing two members to its supervisory board.

The merger would create a combined bank with more than €1.3 trillion in assets, making it one of Europe’s largest cross-border banking mergers in years. UniCredit shares rose notably in trading after the news.

UniCredit CEO Andrea Orcel confirmed the agreement and thanked the German finance minister for the constructive discussions that led to common ground.