Phosphinothricin resistance is a widely used trait in plant science research and agriculture. The BAR resistance gene that inactivates phosphinothricin has now been shown to produce two non-specific metabolites in planta. An engineered BAR resistance gene with no detectable off-target activity is developed to address this issue.