A valve opening and closing timing control apparatus comprising: an electric-type valve opening and closing timing control apparatus provided at least at one of a first camshaft for opening and closing an intake valve of an internal combustion engine and a second camshaft for opening and closing an exhaust valve of the internal combustion engine; and a control unit changing a phase of the electric-type valve opening and closing timing control apparatus to a most advanced angle phase in a case where the electric-type valve opening and closing timing control apparatus malfunctions, characterized in that a first valve opening and closing timing control apparatus is provided at the first camshaft and a second valve opening and closing timing control apparatus is provided at the second camshaft, in a case where one of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus serving as the electric-type valve opening and closing timing control apparatus malfunctions and is changed to the most advanced angle phase and the other of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus which is inhibited from malfunctioning is changeable to an advanced angle direction, the control unit changes a phase of the other of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus to an advanced angle side so that an overlap period where an open period of the intake valve and an open period of the exhaust valve overlap each other obtained after the phase of the other of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus which is inhibited from malfunctioning is changed to the advanced angle direction is shorter than an overlap period where the open period of the intake valve and the open period of the exhaust valve overlap each other obtained in a state where the electric-type valve opening and closing timing control apparatus which malfunctions is only controlled to the most advanced angle phase. an electric-type valve opening and closing timing control apparatus provided at least at one of a first camshaft for opening and closing an intake valve of an internal combustion engine and a second camshaft for opening and closing an exhaust valve of the internal combustion engine; and a control unit changing a phase of the electric-type valve opening and closing timing control apparatus to a most advanced angle phase in a case where the electric-type valve opening and closing timing control apparatus malfunctions, characterized in that a first valve opening and closing timing control apparatus is provided at the first camshaft and a second valve opening and closing timing control apparatus is provided at the second camshaft, in a case where one of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus serving as the electric-type valve opening and closing timing control apparatus malfunctions and is changed to the most advanced angle phase and the other of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus which is inhibited from malfunctioning is changeable to an advanced angle direction, the control unit changes a phase of the other of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus to an advanced angle side so that an overlap period where an open period of the intake valve and an open period of the exhaust valve overlap each other obtained after the phase of the other of the first valve opening and closing timing control apparatus and the second valve opening and closing timing control apparatus which is inhibited from malfunctioning is changed to the advanced angle direction is shorter than an overlap period where the open period of the intake valve and the open period of the exhaust valve overlap each other obtained in a state where the electric-type valve opening and closing timing control apparatus which malfunctions is only controlled to the most advanced angle phase.