From Old Galician-Portuguese quedar, from Vulgar Latin quētāre, from Late Latin quiētāre (“to quiet”), from Latin quietārī. Compare Portuguese borrowed doublet quietar. See also quitar.
Practice speaking and memorizing "quedar" and many other words and sentences in Portuguese.