"During Matt's time here we won the PRO12 during his first season and have made progress in both European campaigns. Matt will leave Leinster Rugby with the best wishes and thanks of all involved with the province for all his hard work during his two years.
"We wish Matt the very best of luck for the future and thank him sincerely for his contribution to Leinster."
O'Connor, who was previously head coach with the Leicester Tigers for four seasons, took over at Leinster Rugby at the start of the 2013/14 season and won the PRO12 title in his first year in charge. He also guided Leinster to an away Quarter-Final in the Heineken Cup against Toulon.
This season, Leinster topped their Champions Cup pool to secure a home Quarter-Final against Bath before coming up short against Toulon after 100 minutes in Marseilles in the Champions Cup Semi-Final.
A fifth placed position in the Guinness PRO12 secured Champions Cup rugby for next season but Leinster's inconsistent form in the league saw the team finish outside the Play-Off positions.
"I am disappointed and frustrated with our form in the PRO12 this season," explained O'Connor. "We set high standards for ourselves and for many reasons, we did not achieve those highs throughout the league this campaign.
"However the European journey that we took over two seasons, for a new group of coaches, players and staff, is one that we can be very proud of. The dynamic in Europe has changed with meritocracy and fewer teams competing and this has improved the quality. We went toe to toe with the best and there is no shame in losing to Toulon by the smallest of margins and I'm extremely proud of the group and the character shown."
O'Connor went on to thank those that had helped him during his tenure at Leinster Rugby.
"I would like to thank my coaching team and the backroom staff for their support and for leaving no stone unturned in their pursuit of a performance every week.
"I'd also like to thank the players for their application during my time here. They have been a pleasure to work with and I will look back on my time with great fondness for what we achieved together.
"Finally, to the supporters, thanks for making me and my family feel welcome during our time here and I wish Leinster Rugby the very best of luck for the future."
Mick Dawson also confirmed that Leo Cullen, Leinster's forwards coach, would be taking over all team matters on an interim basis until a replacement had been found and that a search for a replacement was underway.
Matt O'Connor with Leinster Rugby:
RaboDirect PRO12 Champions 2013/14
Played 61, W40, D5, L16
European Competitions:
Heineken Cup 2013/14:
Pool 1 - W5 D0 L1 (finished top of pool on 22 points)
Away Quarter-Final v Toulon: 29v14
Champions Cup 2014/15:
Pool 2 - W4 D1 L1 (finished top of pool on 20 points)
Home Quarter-Final v Bath Rugby: 18v15
Away Semi-Final v Toulon: 25v20 (AET)
Celtic League:
RaboDirect PRO12 2013/14
Finished Top on 82 points:
W17 D1 L4, Tries Scored 57, Tries Against 30, Try Bonus 8, Losing Bonus 4
Home Play-Off v Ulster Rugby: 13v9
Home Final v Glasgow Warriors: 34v12
Guinness PRO12 2014/15
Finished fifth on 62 points:
W11 D3 L8, Tries Scored 54, Tries Against 39, Try Bonus 8, Losing Bonus 4
Matt O'Connor with Leicester Tigers:
Premiership Champions x3 (08/09,09/10 and 12/13)
LV Cup Winners (2011/12)