Facebook Inc. has signaled it’s ready for a patent battle.

Yahoo Inc. sued the social-networking site in March for patent infringement, and lawyers for Facebook fired back Tuesday with a countersuit. Facebook claims Yahoo is infringing 10 patents covering services such as its homepage, content optimization, relevance engine, Flickr photo-sharing service and advertisements displayed throughout the site.