noun
final part; last bit; end
Refers to the closing stage of an event, period, or process. Often used with に or の to modify a noun.
映画の終わりかけに電話が鳴った。
The phone rang near the end of the movie.
夏休みも終わりかけだ。
Summer vacation is almost over.
終わり means 'end' as a point or result; 終わりかけ emphasizes the process of approaching the end.
Compound of 終わり (end) + かけ (in the process of).