Rivals Microsoft Corp. and Google Inc. agreed to dismiss patent-related lawsuits between the two companies, in a sign of the cooling intellectual-property wars among technology giants.

Microsoft MSFT, +2.40% and Google GOOGL, +2.07% had roughly 20 lawsuits pending between them over uses of patents in mobile phones, Wi-Fi, Web video and other technologies. The companies agreed to dismiss all the pending patent cases, including those related to Google’s former Motorola Mobility smartphone unit, Microsoft and Google said in a joint statement Wednesday.