In this paper we introduce the notion of a quasi-ideal $K$ of a $BCK$-algebra $X$ which is a special kind of subalgebras. The purpose of this paper is to investigate the extension of $X$ by the quasi-ideal $K$ over a $BCK$-algebra $\Gamma.$