Bam Margera's putting another legal issue behind him ... taking a plea deal before his assault trial kicked off.
The "Jackass" star pled guilty to 2 counts of disorderly conduct Wednesday in Pennsylvania. He'd been charged for an incident last year where he allegedly beat up his brother and threatened to kill his family before going on the run from cops.
TMZ confirmed with the Chester County DA .