Marina Keegan, a journalist and playwright who won national attention for urging her fellow college students to resist the lure of Wall Street, died in a car crash Saturday afternoon in Dennis, Mass., just days after graduating from Yale. She was 22.


Ms. Keegan was riding in a car driven by her boyfriend, Michael Gocksch, a fellow Yale graduate, when it rolled over. She was pronounced dead at the scene; Mr. Gocksch was not seriously injured.


Ms. Keegan was to start working as an assistant at The New Yorker magazine in June. A musical she wrote with two other students, “Independents,” is to be performed at the New York International Fringe Festival this summer.


At Yale, Ms. Keegan helped organize a protest challenging campus recruiting, known as Occupy Morgan Stanley. Students gathered outside the hotel where Morgan Stanley was holding an information session, chanting slogans like “Take a stance, don’t go into finance.”


Ms. Keegan expressed a similar view in a column she wrote for DealBook on The New York Times Web site.


The column, which followed an article she wrote for The Yale Daily News, tapped into a national debate about the financial services industry.


“Maybe I’m overly optimistic, but I think most young, ambitious people want to have a positive impact on the world. Whether it’s through art or activism or advances in science, almost every student I spoke to had some kind of larger, altruistic goal in life,” she wrote.


“But what I heard again and again was that working at JPMorgan or Bain or Morgan Stanley was the best way to prepare oneself for a future doing public good,” she continued. “Why do students believe this? Because the recruiters tell them it’s true. Personally, I think it’s ridiculous. Those skills can be gained elsewhere.”


Marina Evelyn Keegan was born Oct. 25, 1989, in Wayland, Mass., where her family lives. Survivors include her parents, Tracy and Kevin, and two brothers, Trevor and Pierce.