Alice Brock, whose eatery in western Massachusetts was immortalized as the place where “you can get anything you want” in Arlo Guthrie’s 1967 anti-war song “Alice’s Restaurant,” died in Wellfleet, Massachusetts, on Thursday — just a week before Thanksgiving, the holiday during which the rambling story at the center of the song takes place. She was 83.

Viki Merrick, her caregiver, said she died in a hospice from chronic obstructive pulmonary disease.

Ever since Guthrie released the song, officially called “Alice’s Restaurant Massacree,” in 1967, it has been a staple of classic-rock stations every late November, not to mention car trip singalongs on the way to visit family for Thanksgiving dinner.

Brock’s restaurant, the Back Room, does not feature much in the song itself. Over the course of a little more than 18 minutes, Guthrie — doing more talking than singing — recounts a visit that he and a friend, Rick Robbins, paid to Brock and her husband, Ray, for Thanksgiving dinner.

A shaggy-dog story ensues: Guthrie and Robbins take some trash to the city dump, but, finding it closed, leave it in a ravine instead. The next morning, police arrest them for littering, and Brock has to bail them out.

That night, she cooks them all a big meal, and the next day, they appear in court, where the judge fines them $50. Later, Guthrie is ordered to an Army induction center, where he is able to avoid the draft because of his criminal record.

Brock helped write the first part of the song, up until the trial. “We were sitting around after dinner and wrote half the song,” she told writer C.A. Sanders, “and the other half, the draft part, Arlo wrote.” Guthrie first performed the song at the 1967 Newport Folk Festival, and it was the title track of his first album, released that fall. With its sardonic line “You want to know if I’m moral enough join the Army, burn women, kids, houses and villages after bein’ a litterbug?,” it became an unofficial anthem of the anti-war movement.

The song made Brock famous, too, even though by the time it appeared, she had shut down her restaurant. But it was an unwanted fame, she said, at least at first.

“I was very uncomfortable because public figures are not really treated with much respect,” she told WAMC Northeast Public Radio in 2014. “They really aren’t. Once your name is in the paper, people feel that they can go, ‘Oh, are you Alice? Turn around,’ like they want to see my behind or something.”

Through the 1970s, Brock tried her hand at several other restaurants. After closing the last one, in 1979, she moved to Provincetown, at the tip of Cape Cod, where she took up odd jobs to support her new career as a painter.

Over time, she came to accept the lot that fame had cast her. “I resented it for a long time,” she told WAMC. “But I’ve come to realize now that people are just delighted when they hear my name.”

Alice May Pelkey was born Feb. 28, 1941, in the New York City borough of Brooklyn, although she liked to tell people that she had been conceived in Provincetown. Her mother, Mary (Dubrovski) Pelkey, worked in real estate, and her father, Joe Pelkey, was a printmaker.

She attended Sarah Lawrence College but left during her sophomore year, later citing her support for “unpopular political causes.” She moved to the Lower East Side of Manhattan, where she met Ray Brock, an architect and sculptor.

They married in 1962, and the next year, they moved to Stockbridge, Massachusetts. They both worked at the Stockbridge School, a private institution — he as an art teacher, she as a librarian — where they befriended Guthrie, a student there, who was the son of folk singer Woody Guthrie.

Alice Brock opened the Back Room at the urging of her mother, who also helped the couple acquire a deconsecrated Episcopal church, which they turned into their home and which is also part of the story told in “Alice’s Restaurant.”

In 1968, director Arthur Penn made a film based on the song, with Brock played by Pat Quinn. (Brock served as a consultant and had a cameo.) Coincidentally, a scene in which the screen versions of the Brocks get married was filmed on the same day their divorce became official.