Edinburgh Brewing Company has won the right to use "Edinburgh Pale Ale" as a trademark, despite objections from a rival firm.
The Edinburgh Brewing Company aims to develop new beers
Caledonian Brewery had complained it would allow its opponent to benefit from the reputation it had established with its "Edinburgh Strong Ale" tag.
It also argued the name was misleading because the beer was actually brewed in Dunbar in East Lothian.
However, a trademark judge in London rejected the objections.
George Salter said: "In my opinion, the differences between the marks are more than enough to prevent members of the relevant public from being led to believe that the goods offered by the applicant are goods of the opponent ,or that the businesses are connected."
With regard to objections on where the beer is brewed, he said: "I do not consider that the public would be deceived as to the geographical origin of the goods."
Caledonian Brewery was ordered to pay £800 towards Edinburgh Brewing Company's legal costs.