Ike Shehadeh, owner of Ike’s Place, a wildly popular sandwich shop in the Castro, will go to court next week to battle an effort to evict him.

Mr. Shehadeh said he received an eviction notice last month from Denman S. Drobisch, the owner of the building at the corner of 16th and Sanchez Streets. Ike’s Place shares the building with four longtime residents who live directly overhead.

After years of fruitless mediation and escalating tensions — during which the shop’s popularity soared — the residents’ lawyers are now threatening to sue both Mr. Shehadeh and Mr. Drobisch. In turn, Mr. Drobisch is seeking to close the shop, Mr. Shehadeh said.

Mr. Drobisch’s lawyer, Arlene Helfrich, did not respond to numerous requests for comment.

Mr. Shehadeh said that over the years his neighbors had called the police and health and planning inspectors “over 40 times.”