Kyrie Irving has dreamed about playing for the Nets almost as long as he can remember dreaming about anything.

And the New Jersey product made it happen, confirming his decision to come to Brooklyn on Monday in a video on Instagram.

“It was fourth grade, I had just gotten done watching the Nets in the Finals. When I knew that this is a dream that I want to fulfill, I had to manifest it, I had to go get it,” Irving said.

“I had to put in my time, I had to put in my hours. I had to relentlessly work on a craft and do it with a passion and love that no one could take away.”

Fittingly, the video was set to music by Jay-Z, who was a part-owner (governor?) of the Nets, a Brooklyn icon and founder of Roc Nation, the agency Irving switched to recently.

But Irving’s love for the Nets stretches back far beyond Jay-Z’s involvement with the franchise. And his desire to come home predates even their move to Brooklyn. This was a master plan long in the making.

Irving grew up in West Orange, N.J., attending Nets games and rooting for point guard Jason Kidd. In the video, Irving admits that his goal had always been to come back home to play. He didn’t choose to get drafted by Cleveland, and got traded to Boston after forcing his Cavaliers exit. This is the first time he’s had control of his fate, and he exercised it to come home.

“In my heart, I knew I always wanted to play at home,” said Irving. “Home is where my heart is, and it’s always been there, simply because of such a great love that I have for my family and the way I grew up.”

Expect that to elicit plenty of salt from Boston fans whenever the Nets finally face the Celtics next season. They’ll point to Irving’s enigmatic persona, October vow to return and eventual ugly exit.

But for Irving — who starred at St. Patrick High School in Elizabeth, N.J. — the lure of home was always strong. In January The Post had reported that he wasn’t actually intent on staying in Boston and that the Nets could and should make him a top priority in free agency.

While the Nets were eyeing him, he was eyeing them.

“They’re a young core figuring it out,” Irving said of the Nets back in January. “So it’s exciting to see what they’ve been able to accomplish this season starting off the way they did and now coming along pretty strong as of late, playing pretty well.”

Irving never meshed with Boston coach Brad Stevens, according to Bleacher Report. And his relationship with his young teammates went south, with a June 28 ESPN report detailing an instance when he became irate when they went out partying in South Beach following the first game of a back-to-back and got hammered in the second.

By the time All-Star weekend rolled around, he was already making an elevator pitch to Kevin Durant to team up in New York, where the Warriors star was setting up a media company.

But it was Brooklyn’s deeper roster, better infrastructure and more successful season that first swayed Irving across the East River from the Knicks to the Nets. Brooklyn guard Spencer Dinwiddie helped recruit Irving, who in turn helped lure Durant.

For Irving, who recently bought a house in South Orange near his childhood neighborhood, it’s been a winding, twisty road back to the area. But he insisted he wouldn’t change a single step or misstep.

“I wouldn’t change anything about this journey at all. It’s brought me back here, and that’s home,” Irving said on the Instagram video. “And home is where my family is, home is where I want my legacy to continue. And I’m happy to be in Brooklyn.”