Moammar Khadafy is dead — and his unlikely pen pal, a retired Jewish florist from Brooklyn, never got to say goodbye.

Louis Schlamowitz, 81, had been writing to Khadafy since the late ’60s and over the years amassed a pile of letters and autographed pictures from the Libyan dictator.

“He was a good pen pal,” said the lifelong Canarsie resident. “I felt it was very nice of him to take the time to write back to me, because I’m nobody special.”

Schlamowitz, who as a hobby has corresponded with everyone from President Harry Truman to Iran’s Ayatollah Khomeini, wrote his first letter to Khadafy shortly after Khadafy seized control of Libya in 1969.

“I wished him well and congratulated him on being the new leader of Libya, hoping for many more years ahead of him,” Schlamowitz said.

“At end of letter, I said I’d be very grateful if he would send a personal picture of himself to add to my Middle East collection.”

About a month later, Schlamowitz received an autographed picture of Khadafy in the mail — and a note thanking him for his “kind message.’’

And a strange, long-distance friendship was born.

“We kept corresponding with each other. I’d send Christmas cards and letters to him about my different viewpoints about the United States and Israel. I said the state of Israel would never be split because it’s the homeland of the Jewish people,” Schlamowitz said.

Khadafy wrote back with his own views — bashing both countries in a two-page diatribe in 1981.

“America practices terrorism against the Palestinian people through providing Israel with the planes and weapons for attacking the Palestinian camps,” Khadafy wrote to Schlamowitz.

“If America carried out an act of aggression against us, we will become a second Vietnam.”

Schlamowitz took the remarks in stride.

“I don’t go along with what everybody sends me,” he said.

He said the correspondence did cause headaches for him with the CIA, which sent agents a few times to quiz him about the notes, as well as those from Khomeini.

But once he’d pulled out his photo album and they saw it was a hobby, they backed off, he said.

But when Schlamowitz learned of Libya’s role in the 1988 Pan Am bombing that killed 270 people over the Scottish town of Lockerbie, he cut Khadafy off.

“[Khadafy] committed crimes against humanity. I didn’t want to get mixed up with him or his organization, so I backed out,” he said.

Six months ago, hearing about the uprisings in Libya, Schlamowitz decided to check in.

“I wanted to give him a lift, with all he was going through. So I wrote him a letter saying, ‘If you don’t take care of your people, your people will take care of you,’” he said.

The letter was returned to him unopened.

On Oct. 20, Khadafy was beaten and killed by Libyan rebels.

“I felt bad about how he was slaughtered. They really gave him the one-two-three,” Schlamowitz said. “But that’s politics.”