What is Shanks relationship with the Gorosei In One piece, Chapter 907, the Gorosei(Five Elder allows Shanks to enter into Mary Geoise and even go as far as to have a meeting with him and that seems like some serious double standard, considering the fact that the Five Elders do not like pirates, and use the Marines and Warlords to capture them.




Why would the Gorosei allow a Yonko (Who is one of their biggest enemies) to come into their Holy land? I know that warlords are an exception to this rule since they do the bidding of the Marines in exchange for Amnesty. However, Shanks is an Emperor and considering his influence, capturing him would logically be the best option but instead they'd have a meeting with him.

Could this imply that Shanks is secretly in league with the world Government? Or does he have some form of leverage over them? Its not adding up because in the last war (Battle of Marinefold),  Aces execution was used to draw Whitebeard out (Yonko at that time).  And it was Shanks who ended the war. Then after that, they have a meeting. Is there an alliance or something were missing?
Short answer - We don't know canonically, as there is absolutely no information on the matter. All that follows is interpretation of their exchange when they meet.

Based on the few short panels of their interaction, we see the Gorosei mention:


  "We are in the middle of the Reverie. A man with a position like yours isn't suitable to get involved in the world of politics. We only made time to talk because it was you."


At first thought, it will seem absurd that the position would refer to him being a Yonko, since the Marines are against them. Many theories have indeed surfaced that Shanks may have some other status that allies him with the Gorosei or makes him worthy to be treated in such a manner. In my view, it is very much against Shanks' character to be a double agent, given how it has developed. Below are some other technicalities to consider.

Firstly, the reason the Marines leave the Yonko alone to a large extent is due to their influence and ability to put up a big fight. They'd have to expend a lot to capture someone at the Yonko-level, which is not worth their efforts unless something major happens. Even in the two instances when Shanks was interacting with other Yonko (Whitebeard and Kaido), they merely attempted to stop the meet by blocking him, and did not attempt capture.

Secondly, the World Government and the Marines are separate. The Gorosei are under the WG, which has its own agendas beyond simply capturing pirates to maintain peace. The Marines fall under the WG, but so do multiple secret forces like the CP0.

In the very next chapter (908), we see the Gorosei mentioning that the "balance of the world cannot be maintained forever". All their appearances seem to indicate they choose to maintain the balance of the Three Great Powers (Marines, Warlords and Pirates), even though one would assume they'd be happy if all pirates were eliminated. Thus, there's definitely more than meets the eye. 

Enough to guess that the Gorosei might not have any direct motivation to capture pirates (like the Marines), and definitely not those at Shanks' level.