He was the starting goalkeeper for the Colombian national team during the Copa America 2011, since the starting goalkeeper David Ospina was out with a facial injury after colliding with Hugo Rodallega days before the tournament. Martinez had a good start to the tournament, being the only goalkeeper to have a clean sheet on all three group games. In the quarterfinal match against Peru however he made two crucial mistakes which led to the two goals of Peru.