Former Gloucester man Yachvili's match-winning kick a few metres inside his team's half just about had the legs but despite being a man down Bath continued to put the phases together.
Spain had great chances in the second half with David Villa denied by the legs of Heitinga, and Sergio Ramos who headed over with the goal at his mercy.