"This for me was a logical decision," McIlroy said. "It is a continuation of what I have always done. I played my junior, boys and amateur golf with Ireland. Just because I'm being paid to play this great game now doesn't mean I should change that.
"I'm very happy with my decision and it means I can look forward to the Olympics in a couple if years time. I thought it was the right thing to do and the right timing."
"I'm looking forward to being able to share stories and experiences with athletes from different sports (in the Olympic village)," he added.
"You would go there feeling a little bit guilty as these athletes will be training for four years while we wouldn't be. I'm really looking forward to it, but as with everybody else, I have to qualify for it first."
McIlroy has twice played for Ireland at the World Cup.
"I see this as a continuation of what I have always done," he was reported as saying on Wednesday ahead of the Irish Open at the Fota Golf Club in Cork.
"I have been thinking about it a lot. I don't know if it is because the World Cup is in Brazil and I was thinking a couple of years down the line.
"I was thinking about all the times I have played for Ireland as a boy and everything. For me it is the right decision to play for Ireland."
McIlroy, who recently split from his fiancee, Danish tennis player Caroline Wozniacki, had earlier said "he would probably play for Great Britain", and in 2013 suggested he may miss the tournament altogether to avoid controversy over any decision.
"I was always very proud to put on the Irish uniform and play as an amateur and as a boy, and I would be very proud to do it again," he added.
"Just because now that I'm playing golf for money and I'm a professional, I'm supposed to have this choice or this decision to make, where if you look at the rugby players, you look at cricketers or hockey players, they view Ireland as one, the same as we do in golf.
"I don't think there's any point to change that or go against that just because it's a different event or it's the Olympics.
"I've had a lot of time on my own the last few weeks and just been thinking about it a lot. It's something that's been quite important to me and something that I needed to make some sort of decision or some sort of stand on it.
"Just weighing up everything, and thinking back about the times that I played for Ireland and won the European Team championship with Ireland, won a lot of great amateur titles representing Ireland, I just thought why change that?"
- Sports & Recreation