When building work is being carried out, who is directly responsible for ensuring that the work Building Regulations?

This responsibility is shared by the owner and whomever is carrying out the work.