mid-15c., pratili, "skillfully, in a cunning manner" (a sense now obsolete), also "in a way that pleases the eye, with neatness and taste, beautifully but not grandly," from pretty (adj.) + -ly (2).
all this is most prettily done
pretext
pre-treat
pretrial
prettification
prettify
prettily
prettiness
pretty
pretty-boy
prettyish
pretzel