Authorities have indicted two men on federal charges for their alleged roles in the robberies of banks in Berks and York counties late last year.

Kyle Costello and Matthew Hill were charged with conspiracy to commit armed bank robbery, armed bank robbery, carrying and using a firearm during and in relation to a crime of violence, and aiding and abetting, according to United States Attorney Zane David Memeger.

Costello, 27, and Hill, 29, both of Lancaster, robbed the National Penn Bank on Lancaster Pike in Cumru Twp., Berks Co., at gunpoint on Nov. 7, 2013, according to the indictment.

Nearly a month later, on Dec. 6, authorities said the pair tried to rob the Susquehanna Bank on East Market Street in York.

If convicted of the charges, the defendants could spend the rest of their lives in prison, with a mandatory minimum sentence of seven years consecutive to any other sentence imposed, and a fine of up to $1 million, officials said.