A valve opening and closing timing control device comprising: a driving-side rotary member rotating synchronously with a crankshaft of an internal combustion engine; a driven-side rotary member rotating integrally with a camshaft of the internal combustion engine, the driven-side rotary member being relatively rotatable with the driving-side rotary member; a fluid pressure chamber being formed with the driving-side rotary member and the driven-side rotary member; a vane being positioned within the fluid pressure chamber, the vane dividing the fluid pressure chamber into a retard chamber and an advance chamber that each allows an inflow and an outflow of a fluid, the vane selectively moving a relative rotational phase of the driven-side rotary member relative to the driving-side rotary member between a retarded direction and an advance direction, the retarded direction where a volume within the retard chamber increases by the inflow of the fluid, the advance direction where a volume within the advance chamber increases by the inflow of the fluid; an intermediate lock mechanism being provided at one of the driving-side rotary member and the driven-side rotary member, the intermediate lock mechanism including a lock member being movable relative to the other of the driving-side rotary member and the driven-side rotary member, the intermediate lock mechanism including a recess extending along a circumferential direction, the recess being provided at the other of the driving-side rotary member and the driven-side rotary member, the intermediate lock mechanism being switchable between a lock state and an unlock state, the lock state where the relative rotational phase is locked at an intermediate locked phase being positioned between a most advance phase and a most retard phase by a fitting of the lock member into the recess, the unlocked state where the relative rotational phase is unlocked by a retraction of the lock member from the recess; and a phase control portion performing a control of a supply of the fluid to the retard chamber and a discharge of the fluid from the advance chamber, or a control of a discharge of the fluid from the retard chamber and a supply of the fluid to the advance chamber, in order for the lock member to reach the intermediate locked phase by reducing a travelling speed of the relative rotational phase from a reference phase that is provided between a present phase and the intermediate locked phase to the intermediate locked phase to be slower than the travelling speed of the relative rotational phase to the reference phase when the intermediate lock mechanism is switched from the unlock state to the lock state. a driving-side rotary member rotating synchronously with a crankshaft of an internal combustion engine; a driven-side rotary member rotating integrally with a camshaft of the internal combustion engine, the driven-side rotary member being relatively rotatable with the driving-side rotary member; a fluid pressure chamber being formed with the driving-side rotary member and the driven-side rotary member; a vane being positioned within the fluid pressure chamber, the vane dividing the fluid pressure chamber into a retard chamber and an advance chamber that each allows an inflow and an outflow of a fluid, the vane selectively moving a relative rotational phase of the driven-side rotary member relative to the driving-side rotary member between a retarded direction and an advance direction, the retarded direction where a volume within the retard chamber increases by the inflow of the fluid, the advance direction where a volume within the advance chamber increases by the inflow of the fluid; an intermediate lock mechanism being provided at one of the driving-side rotary member and the driven-side rotary member, the intermediate lock mechanism including a lock member being movable relative to the other of the driving-side rotary member and the driven-side rotary member, the intermediate lock mechanism including a recess extending along a circumferential direction, the recess being provided at the other of the driving-side rotary member and the driven-side rotary member, the intermediate lock mechanism being switchable between a lock state and an unlock state, the lock state where the relative rotational phase is locked at an intermediate locked phase being positioned between a most advance phase and a most retard phase by a fitting of the lock member into the recess, the unlocked state where the relative rotational phase is unlocked by a retraction of the lock member from the recess; and a phase control portion performing a control of a supply of the fluid to the retard chamber and a discharge of the fluid from the advance chamber, or a control of a discharge of the fluid from the retard chamber and a supply of the fluid to the advance chamber, in order for the lock member to reach the intermediate locked phase by reducing a travelling speed of the relative rotational phase from a reference phase that is provided between a present phase and the intermediate locked phase to the intermediate locked phase to be slower than the travelling speed of the relative rotational phase to the reference phase when the intermediate lock mechanism is switched from the unlock state to the lock state.