Captain Ramirez was the commanding officer of the starship Valiant NCC-74210 during the Dominion War. He died, along with his entire command crew, leaving command with Cadet Tim Watters of Red Squad. (DS9:"Valiant").
See also: Carlos Ramirez, captain of Intrepid