The legal battle begun in 2012 when Shanghai-based Zhizhen Network Technology pursued Apple for allegedly infringing its Chinese patent with Siri, its "intelligent personal assistant".
Apple asked China's patent review board, which operates under the State Intellectual Property Office, to declare Zhizhen's original patent ineffective but the request was rejected.
(Also see: Chinese firm awaits ruling in Apple Siri patent infringement lawsuit)
Late last year Apple appealed to Beijing's Number One Intermediate People's Court to overturn that decision.
"The court did not support the cause of action stated by Apple," the court said in a statement on Tuesday, referring to the case in which Apple "brought a lawsuit" against the government agency.
"The patent for the invention of the 'type of chatbot system' involved remains effective," the court said, referring to Zhizhen's patent.
Apple had decided to appeal to the Beijing Higher People's Court, it added.
Apple's Siri, which responds to a user's commands through voice recognition software, made its formal debut with the release of the iPhone 4S in 2011, while Zhizhen claims its earlier "Xiao i Robot" product works in a similar way.
It is not the first time that Apple has been embroiled in intellectual property right infringement and controversy in China, where its products are popular.
Apple in 2012 paid $60 million to settle a separate legal dispute with a Chinese firm over the iPad trademark.
Apple did not immediately respond to a request for comment by AFP.
For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.