Romania joined NATO in 2004 and the EU in 2007 .