A 22-year-old Florida rocker was arrested and charged with breaching the peace after his inspired performance of the Star Spangled Banner on the Fourth of July drew a crowd of nearly 200 people.

Lane Pittman was shredding with a guitar and amp to the delight of holiday revelers when officers from the Neptune Beach Police Department asked him to move from the street to the sidewalk.

Pittman complied and then launched into his rendition of the National Anthem before transitioning into a version of Ted Nugent's Stranglehold, as seen in a video shot on July 4 around 3pm.

Lane Pittman, 22, was shredding with a guitar and amp to the delight of holiday revelers in Florida on July 4

He launched into the National Anthem before transitioning into a version of Ted Nugent's Stranglehold

Members of the crowd of about 200 applauded and chanted as Pittman continued to wail away on his guitar

As members of the crowd applauded and chanted, officers approached Pittman and had a brief conversation with the guitarist before leading him away, leaving friends to deal with his equipment.

Pittman was handcuffed, taken to the police station, given a notice to appear and charged with misdemeanor breach of the peace, according to News4Jax.

According to Pittman, officers said they considered charging him with inciting a riot and keeping him in jail overnight.

He said: 'That blows my mind, because it was peaceful up until the time they arrested me.

'I don't think I ever played that song as good in my life as I did on that day.

'It felt right. It was an emotional roller coaster.'

As members of the crowd applauded and chanted, officers approached Pittman and had a brief conversation

The Neptune Beach Police Department officers had a conversation with the guitarist before leading him away

Pittman was handcuffed and taken to the police station, leaving his friends to deal with his equipment

The University of North Florida senior was given a notice to appear and charged with breach of the peace

The University of North Florida senior, who has aspirations of becoming the next mascot for the Jacksonville Jaguars, might have been booked on the riot charge but the computer at the police station kept crashing, Fox News reported.

Pittman said: 'I know this was God at work.'

Pittman was booked to open the Connection Festival in Jacksonville on July 25 after his arrest

Neptune Beach Police Chief David Sembach said afterwards that the whole thing might have been Pittman's attempt to generate publicity because of his aspiration to become the NFL team's mascot.

Chief Sembach said: 'Out of respect for the national anthem, they let them finish the National Anthem.

'He went to the sidewalk and continued playing, and it was only after that that the crowd was getting hostile, so the only way to stop it, since he wasn't going to stop playing, was to take him out of the location.'

In a note he posted with the video of his arrest, Pittman wrote: 'I do not promote deliberately defying authority.

'I endorse good character and fun times within the system.

'I did not have a drop of alcohol in my system and was just trying to be as patriotic as I can, legally, on the day of our independence.'

Police won't be able to stop Pittman from playing later this month.

He was booked to open the Connection Festival in Jacksonville on July 25 with another performance of the National Anthem.

According to a release: 'X102.9 and Connection Festival are excited to bring Lane up on stage to open the festival and show all of Jacksonville what he can do while playing a fully sanctioned version of the National Anthem.'