The chief executive officer of Intel Corp, Brian Krzanich, resigned on Thursday with immediate effect, reported Reuters. Krzanich stepped down after an inquiry revealed that he had violated company policy as he had a consensual relationship with an Intel employee in the past.

“An ongoing investigation by internal and external counsel has confirmed a violation of Intel’s non-fraternization policy, which applies to all managers,” the company said in a statement.

The board named Chief Financial Officer Robert Swan the interim chief executive officer. Intel said it was looking for a permanent CEO and was considering both internal and external candidates for the post. It will hire an executive search firm to assist in the process.

Krzanich joined Intel in 1982 as an engineer. He took over as the CEO in May 2013.