Joaquín Vara de Rey y Rubio (14 August 1841 – 1 July 1898) was a career Spanish military officer. He is best known for leading the stubborn defense of El Caney against a massively superior American force during the Spanish–American War.