A LEVEL crossing in York will be closed overnight because of railway maintenance works.