An immigration official stopped Homeland Security agents from arresting the alleged gun supplier of the San Bernardino terrorists the day after the attack and then lied about it to department investigators.

Irene Martin prevented armed officers from detaining Enrique Marquez who was scheduled to be interviewed alongside his Russian wife Mariya Chernyk, a government report has stated.

He was being questioned after his friends Syed Rizwan Farook and his wife, Tashfeen Malik, killed 14 people at an office Christmas party.

When the FBI learned Marquez had allegedly supplied the guns, they sent a team from the Homeland Security Investigations (HSI) unit to the U.S. Citizenship and Immigration Services (USCIS) office where they were being questioned.

But Martin allegedly refused to allow the officers to get to Marquez and delayed them when they were given permission.

Scroll down for video

Immigration official Irene Martin stopped Homeland Security agents from arresting the alleged gun supplier of the San Bernardino terrorists the day after the attack and then lied about it to department investigators. She is seen shaking hands with two soldiers on December 9, less than a week after the attack

Martin prevented armed officers from detaining Enrique Marquez (left and right) who was scheduled to be interviewed the day after the horrific attacks that left 14 people dead. He has since been charged with a string a terrorism offences related to the atrocity

Martin (center) allegedly refused to allow the officers to get to Marquez and delayed them when they were given permission.

She since been reassigned to a different office, but she is set to avoid punishment, even though Marquez has since been charged with a number of terrorism-related offenses linked to the atrocity carried out by his friends.

A report into the aftermath of the horrific attack slammed the field officer for getting in the way of the investigation.

Martin wasn't named, but she has been identified as the field officer. She is also listed in the position on the agency's website.

The damning report reads: 'We concluded that the USCIS Field Office Director at the San Bernardino office improperly delayed HSI agents from conducting a lawful and routine law enforcement action, but when the Field Office Director elevated the situation to her supervisors, the situation was corrected.

'We found that the contract security personnel improperly prevented HSI personnel from entering the building.

Finally, we found that there was no attempt by ICE leadership or supervisory personnel within HSI to attempt to retaliate against the individuals who notified HSGAC of the situation.

Marquez was being questioned after his friends Syed Rizwan Farook and his wife, Tashfeen Malik, killed 14 people at an office Christmas party

'We have also concluded that the Field Office Director was not candid with OIG investigators during her interview.'

The report goes on: 'Five HSI agents, dressed in tactical gear, arrived shortly after 12:30 and made contact with Federal Protective Service (FPS) contract security personnel stationed in the lobby of the building.

'They informed the guards they were there on an urgent matter, looking for Marquez, and advised that he may be traveling with a Russian female, and that they may have been connected to the shootings the prior day.

'The FPS guards advised the HSI agents that they had to stay in the lobby until the Field Office Director approved their entry.

'The guards did allow the HSI agents to view surveillance video from various areas around the building to see if anyone matching Marquez’s description had already arrived.

'One of the guards told OIG investigators that he could see the look of urgency on the agents’ faces, and they seemed “on edge” due to having to wait until the guards found the Field Office Director.'

The agents were in the lobby for around 10 minutes. Then they were moved to conference room for another 10 minutes.

Martin then went into the room and told the agents they could not 'arrest, detain, or interview anyone in the building based on USCIS policy, and that she would need to obtain guidance from her superior before allowing them access.'

The report goes on: 'When interviewed by OIG, the Field Office Director denied telling the agents they were not allowed to arrest, detain, or interview anyone in the building.

'However, her account is contradicted by that of the other HSI agents present.'

Marquez has been charged with a number of terrorism-related offences after he allegedly supplied the two San Berardino shooters with the arsenal of weapons they used to gun down 14 people

According to the report Martin had already discovered the link between Chernykh and the shooting.

She claims she didn't know the agents were investigating the shooting until she showed them a picture of the Russian wife.

But she is said to have been told as they arrived.

Martin had her staff check to see if Chernykh had checked in for her appointment. She soon found out she nor Marquez were there.

The conversation then switched from HSI access to the building to HSI access to USCIS information.

According to HSI, the agents then requested information from the USCIS file on Marquez’s wife, but the Field Office Director was not forthcoming with information and would not provide the file.

She did provide them with a photo. Agents also asked for known addresses, but the Field Office Director would only confirm the address provided by the agents and did not offer any additional information.

The report continues: 'Here, the agents were justifiably concerned that Marquez and Chernykh may pose a threat to the occupants and visitors of the USCIS facility.

'Less than 24 hours before, individuals associated with the couple had committed an atrocity on an unthinkable scale against unarmed innocents; at the time of HSI’s visit to USCIS, Marquez and Chernykh’s intentions were unknown.