Migos and Chris Brown and their respective crews almost came to blows last night at a BET Awards after-party.
Chris had just finished premiering his new music video with Future at the event ... near the Microsoft Theater in downtown L.A.
The guys from Migos were walking in at the same time, and when they came face-to-face with Chris' crew things got heated.
Sources say Chris' group pushed Quavo, and then one of the Migos guys jumped in ... but then he got punched.
Chris kept walking while all of this was going on -- perhaps, wisely, realizing he don't need any heat from Johnny Law. However, we're told Migos and some friends followed Chris to his car and surrounded him.
Ultimately, Chris was able to leave without anyone getting hurt ... but not before some very tense moments.
Check out video of some of the altercation and the aftermath below...