For example

The accused admitted the offence, but used the defence that he was acting under coercion whilst committing it.