PSG has now secured the season-opening cup on 14 different times.
Paris Saint-Germain needed a stoppage-time equaliser followed by a successful spot-kick decider to get past Marseille in the Gulf and capture a record-extending fourth consecutive Trophee des Champions victory.
The European champions seemed to be coasting towards a straightforward triumph in the showdown between the Ligue 1 winners and the Coupe de France winners after Ousmane Dembele found the net in the opening stages.
However, Marseille fired twice late to take a surprise lead. First, Mason Greenwood scored from the penalty spot, before the defender inadvertently directed the ball into his own net for an own-goal.
In a remarkable twist of events, the Portuguese striker snatched a crucial leveler in the dying seconds to send the match into a penalty shootout. PSG goalkeeper Lucas Chevalier then emerged as the hero, stopping crucial attempts from O'Riley and Traore.
From the spot, Ramos, the midfielder, Nuno Mendes, and Desire Doue all converted successfully for PSG to complete a 4-1 shootout win.
The record champions PSG, who faced last season's Ligue 1 runners-up Olympique de Marseille after completing a domestic double, have now won this trophy for the twelfth time in the last thirteen seasons.