In a mid-credits scene , they are intercepted by a Sanctuary II , the spaceship of Thanos , which marks the beginning of Infinity War .
In Thor : Ragnarok , the appearance of Thanos ' spaceship Sanctuary II , marks the beginning of Infinity War .