On TV shows such as “No Reservations” and “Parts Unknown,” chef Anthony Bourdain presented the image of an alpha male to the world.

Beneath the swagger and mischievous grin, however, loomed a history of lethally destructive behavior. Soon after his first marriage ended in 2005, as Bourdain related in his book “Medium Raw,” he was “aimless and regularly suicidal” during a stretch in the Caribbean. He recounted getting drunk and stoned — “the kind of drunk where you’ve got to put a hand over one eye to see straight” — and said he would “peel out” in his 4×4 on his way back from nightly trips to the brothels.

His state of mind improved upon meeting a woman in London. At that point, wrote Bourdain, “my nightly attempts at suicide ended.”

But on Friday, the chef-turned-star was found dead of an apparent suicide in a room at the luxurious Le Chambard Hotel in Kaysersberg, France. He was 61 and reportedly had hanged himself with the belt of his bathrobe.

A self-acknowledged reformed addict of heroin and cocaine — “I would have robbed your medicine cabinet had I been invited to your house,” he confessed in a 2013 Ask Me Anything session on Reddit — Bourdain was loved by those in the food world and beyond.

“He taught us about food — but more importantly, about its ability to bring us together. To make us a little less afraid of the unknown,” Barack Obama tweeted. The former president made a memorable appearance on “Parts Unknown,” joining Bourdain for noodles and beer in a Hanoi restaurant with plastic stools.

Adventurous, literary and real, Bourdain redefined the idea of the celebrity chef with his culinary travel shows “No Reservations” on the Travel Channel and CNN’s “Parts Unknown,” both of which emphasized the exploration of global cultures beyond just food. Characterized as “the Hemingway of gastronomy” by British chef Marco Pierre White, Bourdain brought Vietnam’s fetal duck eggs, Italy’s homemade pastas and Japan’s silkiest sushi into millions of homes with cable TV.

Bourdain was beloved in the culinary world and boosted the careers of younger chefs including Eddie Huang, Roy Choi and David Chang. Among his closest chef friends was Eric Ripert, co-owner and chef of the three-Michelin-starred Le Bernardin in Midtown. They two were often seen adventuring on Bourdain’s shows: They zipped through Marseilles on scooters, rode donkeys to a Grand Cayman beach cookout, and goofed around with blindfolded junk-food tastings.

Ripert, 53, was with Bourdain this past week, working together on a segment for “Parts Unknown,” and it was he who discovered his longtime friend’s body Friday morning.

Later that day, the chefs’ mutual pal Jason Merder, formerly a tour manager for Bourdain, texted Ripert as soon as he heard the news. Ripert sent back emojis of praying hands and a dove.

“It’s hard enough to think about Tony going out that way,” Merder told The Post. “But it’s even harder to imagine Eric finding him like that.”

“Tony,” as he was known to friends and colleagues, was born in New York City in 1956, the older of two sons of music industry executive Pierre and newspaper editor Gladys Bourdain.

Raised in suburban New Jersey, Bourdain related in his 2000 memoir, “Kitchen Confidential,” that his lifelong love affair with food began when he was a fourth-grader in the 1960s. He and his family embarked on a luxe ocean voyage aboard the Queen Mary, en route to his father’s ancestral home in France. At dinner one night, a waiter ceremoniously spooned vichyssoise into the young Bourdain’s bowl — and the cold, velvety leek-and-potato soup was a revelation for a kid used to eating Campbell’s cream of mushroom.

On the ground in France, he gorged on his first stinky, runny cheeses, as well as blood sausage and even horse meat. He drank watered-down wine and ate a raw oyster fresh from the sea.

Bourdain’s parents and brother blanched at the delicacy, while he reveled in appreciating something delicious, “vaguely sexual-looking” and complex that others could not understand. He wrote that the experience made him a man — and scarred him for life: “The food, the long and often stupid and self-destructive search for the next thing, whether it was sex or drugs or some other new sensation, would all stem from this moment.”

He decided he wanted to be a chef while toiling during his late teens at a fried-fish spot in Provincetown, Mass., where he once spotted the chef having sex with a newlywed bride celebrating her wedding at the restaurant. He dropped out of Vassar College and went on to attend the Culinary Institute of America in Hyde Park, NY.

By his early 20s, Bourdain was hooked on both the rough-and-tumble kitchen life and a host of illicit substances. During an early job in Soho, Bourdain was, he wrote, “high all the time” — cooking meals while on speed, cocaine and, “increasingly, heroin.” He would dispatch a busboy to Alphabet City to pick up bindles of smack. For kicks, the young chef and his crew would blast the soundtrack to “Apocalypse Now,” soak the kitchen’s range in brandy and set it alight to mimic scenes from the Vietnam flick.

Bourdain burned the candle at both ends, toiling over that stove all day and night, then going to see punk bands and doing drugs in after-hours clubs downtown, “working through” hits of blotter acid and shots of Stolichnaya.

Of course, it ended badly. On Reddit, Bourdain later recalled his worst moment as a drug addict: “Combing the shag carpet for paint chips in the hope that they were fallen crack bits. Smoking them anyway.”

Bourdain got straight, with the help of methadone, in the 1980s. His life took an upswing in 1998 when he was hired as executive chef at Brasserie Les Halles on Park Avenue South. It’s where Bourdain reached his peak as a chef — running his first restaurant in New York and even getting a Tokyo outpost off the ground.

It also served as his send-off from full-time restaurant work when he published 2000’s “Kitchen Confidential.” Written in a confessional, wiseguy tone, it notoriously exposed what really goes on behind the scenes. It was a brutally frank tome, tackling such topics as why brunch is a meal to be avoided: “How about hollandaise sauce? Not for me . . . Unfortunately, [its] lukewarm holding temperature is also the favorite temperature for bacteria to copulate and reproduce.”

The book became a New York Times best-seller and ushered in an age of chefs as rock stars. Director David Fincher optioned it, and Brad Pitt reportedly wanted to play Bourdain. But that never happened and “Kitchen Confidential” wound up a short-lived 2005 TV series (starring Bradley Cooper before he became a huge movie star).

Bourdain himself wanted nothing to do with the food-TV revolution that was bubbling around him on channels like the Food Network. As he wrote in his second book, “Medium Raw,” he actually made fun of TV chefs, even when they were accomplished in real life. “When I’d see Emeril [Lagasse] and Bobby [Flay] on the tube, they seemed like creatures from another planet — bizarrely, artificially cheerful creatures in a candy-colored galaxy in no way resembling my own.”

He softened, however, when he was offered the chance to do a show his way.

“A Cook’s Tour” debuted on the Food Channel in 2002 and ran for two seasons, showing Bourdain traveling the world in search of exotic eats. That led to “No Reservations” on the Travel Channel, which ran from 2003 through 2012 and added social commentary to the culinary element. “Parts Unknown,” which further focused on the world beyond food, premiered in 2013. In all instances, he practiced a form of gritty, chain-smoking, hard-drinking, bleep-filled participatory journalism that was initially new to the normally genteel genre of food TV.

‘He taught us about food — but more importantly, about its ability to bring us together.’

Over the years, Bourdain and his crews explored some 100 countries, taking viewers into pockets of cultural psyches typically off-limits to tourists. (Like the time, after downing vodka shots in St. Petersburg, Russia, he joined his new comrades for an icy dip in a nearby river.) Summing up his show for a story in The New Yorker, the chef recounted the original pitch: “I travel around the world, eat a lot of s- -t and basically do whatever the f- -k I want.”

On multiple occasions, it involved him getting tattooed on television. His first one was done privately, and “my first wife was not pleased,” he told Maxim last year. “I just went out and did it to congratulate myself on my sudden change of fortune after 30 years toiling in obscurity.”

Bourdain last worked full-time in a restaurant kitchen at Les Halles in 2000. By the end of his run there, he made only $800 per week and, until age 44, he had never had a savings account. Asked in 2013 if he missed the chef’s life, Bourdain cheekily replied, “Hell no! I like farting through hotel sheets.”

Bourdain did not suffer fools, and, over the years, became known for calling out people who he felt were misguiding America or the world of gastronomy.

He called critic Alan Richman “a douchebag” for writing a snarky story about the New Orleans food scene just one year after 2005’s Hurricane Katrina. He referred to Guy Fieri’s now-defunct Times Square restaurant, Guy’s American Kitchen & Bar, as a “terror dome,” and sniped at the heralded French chef Alain Ducasse for being “a f- -kwit” with “dangerously uncool” dining rooms.

He had a softer spot for kids. During a Q&A at the Prospect Park food festival Googamooga in 2012, Bourdain called on my 9-year-old daughter, who asked the best way to cook a unicorn.

Not missing a beat, Bourdain smiled and shrugged: “Rare.”

He had a daughter of his own, Ariane, 11 years old, with Ottavia Busia, to whom he was married from 2007 until 2016. (Previously, Bourdain was married to Nancy Putkoski from 1985 until 2005.)

Since 2016, Bourdain had been dating actress Asia Argento, 42. The couple often put up Instagram photos of themselves enjoying time together around the world. On her Instagram and Twitter pages Friday, Argento posted text that read in part, “He was my love, my rock, my protector.”

Bourdain more than lived up to that assessment after Argento went public in October 2017 with accusations that movie mogul Harvey Weinstein had sexually assaulted her. An unflaggingly ardent booster of #MeToo, Bourdain relentlessly blasted Weinstein, tweeting statements such as, “Can we use the word ‘rapist’ now? #Weinstein.”

He didn’t hold back against other famous names, either, when he felt they deserved it.

After fashion designer Donna Karan said, when asked about the Weinstein accusations, that women who dressed a certain way were asking for “trouble,” Bourdain tweeted at her: “How many seventeen year olds have you dressed like they are, in your words, ‘asking for it’?”

His last tweet on the matter, posted on May 25 — the day Weinstein was arrested in New York City on charges of rape (although not against Argento) — was an image of a Federal Bureau of Prisons food menu. The chef wrote: “What’s on the menu for #Weinstein @AsiaArgento.”

It was classic Bourdain.