Brandon Marshall saw which way the Jets were going and wanted no part of losing.

The former Jets and now Giants wide receiver said in a radio interview Thursday he asked for his release from Gang Green when he saw the team was going to rebuild.

“For me, I just knew I couldn’t be in that environment,” Marshall said on “Boomer & Carton” on WFAN.

It sounds like Marshall, like most people, believes the Jets are in for a long year in 2017, and he would not have been able to take it.

“I think everyone knows the type of personality I am at this point in my career,” Marshall said. “I wouldn’t have made it through an entire season knowing that we didn’t have a chance. That’s all you want as a player — you just want a chance.”

Marshall spent two seasons with the Jets. Everything went well for Marshall and the Jets in the first season, other than missing the playoffs. He set a new franchise record with 109 catches for 1,502 yards and 14 touchdowns as the team went 10-6.

Then the bottom fell out.

The Jets struggled in Marshall’s second season, and his productivity fell with the team’s fortunes. They went 5-11 and Marshall had 59 catches for 788 yards and just three touchdowns. He also feuded with teammate Sheldon Richardson, something that spilled over from the locker room into the headlines.

The Jets released Marshall at his request in March. They also got rid of veterans Nick Mangold, Darrelle Revis, Eric Decker, David Harris, Breno Giacomini, Marcus Gilchrist and Nick Folk.

The way the Jets released Harris and Decker in June irked Marshall.

“Both [releases] were wrong,” Marshall said. “It was too late in free agency. It was bad business.”

Marshall stuck up for Jets coach Todd Bowles but said the moves were a bad look for the Jets organization.

“There’s no way around it,” Marshall said. “It’s bad business.”