Someone tried to steal Kendrick Lamar's spotlight during the Super Bowl halftime show ... taking out Palestinian and Sudanese flags and waving it around his set before getting tackled to the ground by security.
The moment went down toward the end of K. Dot's performance ... as he was doing his rendition of "tv off" -- the last song on the setlist.
In video of the stunt, what appears to be a performer wearing all black broke script ... pulling out the flag and putting it on full display as they stood on top of the same vehicle Kendrick started his show on.