Abstract. The task of finding the minimum sequence of container movements that transforms an initial bay into a bay that does not require redundant relocations during an actual loading operation is referred to as the container pre-marshalling problem (CPMP). A majority of existing approaches focus only on improving computational efficiency through heuristics, which may not guarantee the optimality of obtained solutions. This paper discusses an efficient search method for obtaining optimal solutions of the CPMP. Unlike most existing approaches, which introduce heuristics for efficiency, this paper pursues an optimization method that preserves optimality without heuristics. Further, through experimental results, we demonstrate how the proposed approach surpasses heuristic approaches in both optimality and efficiency in large-scale problem instances.