put/throw a spanner in the works

idiom

Definition of put/throw a spanner in the works

informal
: to cause something to not go as planned We were ready to start the project when the bank threw a spanner in the works by denying the loan.