The Yang-Baxter and pentagon equations are two well-known equations of Mathematical Physic. If S is a set, a map s : S × S → S × S is said to be a set theoretical solution of the Yang-Baxter equation if s23 s13 s12 = s12 s13 s23,where s12 = s × idS, s23 = idS ×s, and s13 = (idS ×τ ) s12 (idS ×τ ) and τ is the flip map, i.e., the map on S × S given by τ (x, y) = (y, x). Instead, s is called a set-theoretical solution of the pentagon equation if s23 s13 s12 = s12 s23.The main aim of this work is to display how solutions of the pentagon equation turn out to be a useful tool to obtain new solutions of the Yang-Baxter equation. Specifically, we present a new construction of solutions of the Yang-Baxter equation involving two specific solutions of the pentagon equation. To this end, we provide a method to obtain solutions of the pentagon equation on the matched product of two semigroups, that is a semigroup including the classical Zappa product.where s 12 = s × id S , s 23 = id S ×s, and s 13 = (id S ×τ ) s 12 (id S ×τ ) and τ is the flip map, i.e., the map on S × S given by τ (x, y) = (y, x). Set-theoretical solutions of the pentagon equation are used in the pioneering work of Baaj and Skandalis [1] to obtain multiplicative unitary operators on a Hilbert space. Later, there have been appeared several papers on this topic: Zakrzewski [38], Baaj and Skandalis [2], Kashaev and Sergeev [25], Jiang and Liu [22], Kashaev and Reshetikhin [24], Kashaev [23], and Catino, Mazzotta, and Miccoli [9]. On the other hand, a map s : S × S → S × S is a set-theoretical solution of the quantum Yang-Baxter equation [14] on a set S if the relation s 23 s 13 s 12 = s 12 s 13 s 23is satisfied, with the same notation adopted for the pentagon equation. Just to give an example, if f, g are idempotent maps from S into itself such that f g = gf , then the map s defined as s(x, y) = (f (x), g(y)) is a solution to the both equations. These examples are provided by Militaru [31, Examples 2.4] and in particular they lie in the class of the well-known Lyubashenko solutions [14]. Finding set-theoretical solutions of the Yang-Baxter equation is equivalent to determining set-theoretical solutions of the braid equation, i.e., maps r : S × S → S × S such that the relation r 23 r 12 r 23 = r 12 r 23 r 13 holds. In particular, a map s is a set-theoretical solution of the quantum Yang-Baxter equation if and only if r = τ s is a set-theoretical solution of the braid equation. This map r is usually written as r(x, y) = (λ x (y), ρ y (x)) with λ x , ρ y maps from S into itself. Since the late 1990s a large number of works related to this equation has been produced, including the seminal papers of Gateva-Ivanova and Van den Bergh [17], Etingof, Schedler, and Soloviev [15], and Lu, Yan, and Zhu [29]. In particular, the class of involutive nondegenerate solutions, i.e., r 2 = id and the maps λ x , ρ x are bijective for every x ∈ S, has been the most studied. Some algebraic structures related to the braid equation have been introduced and investigated over the yea...