In 2373, Ramirez met Jadzia Dax and Worf on Starbase 63. After Jadzia boasted with her Tongo skills, Ramirez managed to persuade her into playing a no-limit game. Ramirez, however, was a three-time Tongo champion, so Dax lost two bars of latinum to him. (DS9: "The Darkness and the Light")
The Valiant was in the Kepla sector when the Dominion War began. Consequently, Ramirez ordered the Valiant back to Federation space. On their way home, the Valiant encountered a Cardassian battle cruiser near El-Gatark. The two ships began to attack each other and both ships lost main power. Ramirez himself was injured with a punctured lung, but managed to get the Valiant's systems back online and the Cardassian ship was destroyed.