R2-M5 was an R2 series astromech droid with red, white, and silver plating and a black sensor. Like all R2 astromech droids, R2-M5 was manufactured by Industrial Automaton and stood ninety-six centimeters tall. The droid served Royal Security Forces of the planet Naboo during the reign of Queen Padmé Amidala. After the Trade Federation invaded Naboo and captured its capital Theed, R2-M5 was in the Theed Hangar under guard by B1-series battle droids when Amidala and her allies attacked the battle droids in order to retake the hangar.
Amidala’s forces successfully managed to destroy the Trade Federation droids, allowing the pilots of Bravo Flight and their astromechs to board their N-1 starfighter and launch for battle against the Trade Federation forces blockading their planet. The Trade Federation were ultimately defeated and driven off Naboo.