A Buffalo man was charged Friday with robbing two banks earlier this year.

Jason Berg, 23, is accused of robbing the M&T Bank at 788 Tonawanda St. on May 16 and the M&T Bank at 1580 Hertel Ave. on June 12.

Assistant U.S. Attorney Melissa Marangola said Berg passed notes to the bank tellers indicating he had a firearm.

Berg’s arrest is the result of an investigation by the Buffalo Police and the Federal Bureau of Investigation.