A crowd of almost 17,000 watched the match Saturday at Giants Stadium as the USA improved its record to 9-0-2 in 2007 with four games left in the Send-Off Series before leaving for the 2007 Women's World Cup.
The win also stretched the team's unbeaten streak to 43 games, 42 of those under head coach Greg Ryan.
"It was great to play Brazil because they are so different than any kind of team," said Lilly. "They are technically so good, they're quick, but they also a bit rough. They get in there and are always right around you. As a team, we did well to stay composed and try to play. I think it's good for these young players to go up against Brazil. They had to weather the storm. I also think it was good for us to see it now. I think some of the young players were surprised, but they held their own."
Brazil committed 20 fouls and was handed five yellow cards.
June 23 in East Rutherford, N.J.
USA 2 Brazil 0. Goals: Lilly 1, Wambach 17.
USA -- Scurry, Rampone, Whitehill, Markgraf, Lopez, Boxx (Osborne, 46), Chalupny, Lloyd (Hucles, 86), O'Reilly (Tarpley, 24; Ellertson, 76), Wambach, Lilly (Kai, 85)
Brazil -- Andrea, Jatoba, Aline (Bage, 72), Tania, Michele (Ester, 46), Maicon, Daniela Alves, Renata Costa, Formiga, Katia (Grazielle, 59; Maurine, 76), Cristiane.
Referee: Rachel Woo (USA).