Plasmids can also provide bacteria with the ability to fix nitrogen or to degrade recalcitrant organic compounds that provide an advantage when nutrients are scarce .
Plasmids also can provide bacteria with an ability to fix elemental nitrogen or to degrade difficult organic compounds .