LOS ANGELES — A line of people streamed into an unmarked, dimly lighted storefront on Fairfax Avenue as night fell Friday, on a mash-up Los Angeles block catering to religious Jews and hungry hipsters. Before long, a smattering of protesters arrived.

Behind the glass doors, an act of culinary defiance was taking place.

In eight months, the sale of foie gras will be banned in California. But for seven hours on Friday night, at a restaurant appropriately known as Animal, three chefs presented an eight-course meal that was nothing short of a glorification of this soon-to-be-outlawed delicacy. There was smoked foie gras, roasted foie gras, steamed foie gras and liquefied foie gras, injected into agnolotti. It was served with veal tongue, yogurt, prosciutto, mustard ice cream and truffles. There was even a foie gras dessert: a brownie sundae with foie gras Chantilly.

With all its gluttonous excess, and with the backdrop of the animal rights protesters, the sold-out dinner became the fattiest of food as political protest, offering a clash of competing passions in a battle that has reverberated across the nation but finally settled here, the first state in the nation to criminalize the sale of foie gras, the fattened liver of a goose or a duck.

It was also a perhaps belated realization by these chefs and their fans that a law signed eight years ago is truly taking effect and is about to change the way they do business drastically, putting California on the front lines of the battle about force-feeding ducks and geese to produce the silky liver delicacy.