In this article we prove Tate conjecture for a large class of compact quaternionic Shimura fourfolds.