The article discusses issues related to the regulation of diplomatic and consular immunity in the provisions of the Code of Criminal Procedure. The issue of the relationship between international law and national law in this regard and the discrepancies that appear between the indicated legal systems were discussed.